package com.yh.csx.bsf.flow.web.controller.user;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

import com.alibaba.fastjson.JSON;
import com.yh.csx.bsf.flow.web.base.SpringMvcController;
import com.yh.csx.bsf.flow.web.base.User;
import lombok.extern.slf4j.Slf4j;

/**
 * 我的流程页面
 * 
 * @author Robin.Wang
 * @date 2019-10-29
 * 
 * 
 */
@Slf4j
@Controller
@RequestMapping(value="/user/flow", method = RequestMethod.GET)
public class UserController extends SpringMvcController {

	@RequestMapping("/mode_list")
	public ModelAndView flowCenter() {// 流程发起选择页
		return pageVisit((m) -> {
		});
	}

	@RequestMapping("/lunched_list")
	public ModelAndView mytaskPage() {
		User user = User.getCurrent();
		log.info("用户信息：" + JSON.toJSONString(user));
		return pageVisit((m) -> {
		});
	}

	@RequestMapping("/undo_list")
	public ModelAndView undoTaskPage() {
		return pageVisit((m) -> {
		});
	}

	@RequestMapping("/done_list")
	public ModelAndView doneTaskPage() {
		return pageVisit((m) -> {
		});
	}

	@RequestMapping("/flow_detail")
	public ModelAndView flowDetailPage() {
		return pageVisit((m) -> {
		});
	}
	@RequestMapping("/task_detail")
	public ModelAndView taskDetailPage() {
		return pageVisit((m) -> {
		});
	}

	@RequestMapping("/create")
	public ModelAndView createPage() {
		return pageVisit((m) -> {
		});
	}
	@RequestMapping("/edit")
	public ModelAndView editPage() {
		return pageVisit((m) -> {
		});
	}
	@RequestMapping("/approve")
	public ModelAndView approve() {
		return pageVisit((m) -> {
		});
	}
}
